package com.hs.mapper;

import com.hs.entity.MyConsult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MyConsultMapper {
    int addMyConsult(MyConsult myConsult);
    int deleteMyConsult(int id);
    int updateMyConsult(MyConsult myConsult);
    MyConsult getMyConsultById(int id);
    List<MyConsult> getMyConsultByPage(MyConsult myConsult);
    List<MyConsult> getMyConsultByUserId(Integer userId);
    List<MyConsult> getMyConsultByIdAndStatus(@Param("userId") Integer userId, @Param("status") String status);
    int updateMyConsultById(Integer consultantId);
}
